package cn.edu.zju.gis.disasterBE.sever.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("disaster_product")
@ApiModel("灾害产品表")
public class DisasterProduct implements Entity<Integer>{

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "灾害产品id")
    private Integer id;

    @TableField(value = "did")
    @ApiModelProperty(value = "灾害id")
    private Integer did;

    @TableField(value = "date")
    @ApiModelProperty(value = "灾害产品日期")
    private String date;

    @TableField(value = "name")
    @ApiModelProperty(value = "灾害产品名称")
    private String name;

    @TableField(value = "disaster")
    @ApiModelProperty(value = "灾害名称")
    private String disaster;

    @TableField(value = "sponsor")
    @ApiModelProperty(value = "发起人")
    private String sponsor;

    @TableField(value = "producer")
    @ApiModelProperty(value = "制作人")
    private String producer;

    @TableField(value = "description")
    @ApiModelProperty(value = "描述")
    private String description;


    @Override
    public Integer id()
    {
        return id;
    }
}
